﻿<UserControl x:Class="MyMeetup.Controls.GroupPicker"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
        <ListBox Name="groupList" Margin="0,0,0,0">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Button BorderBrush="Azure" Height="120" Style="{StaticResource ListItemsButtons}" Click="Group_Click" >
                        <Button.Content>
                            <StackPanel Orientation="Horizontal" Width="Auto">
                                <Image Source="{Binding PhotoUrl}" Width="100" Height="100"/>
                                <TextBlock Text="{Binding Name}" Width="360" TextWrapping="Wrap" Padding="10,0,0,0" />
                            </StackPanel>
                        </Button.Content>
                    </Button>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
